package com.happycat.social.enums;

/**
 * 性别中文enum
 *
 * @Author shenbin
 * @CreatedDate 2020-08-20
 * @Modified By:
 */
public enum GenderChEnum {

    MAN("男"), WOMAN("女"), UnKnown("未知");

    public String gender;

    GenderChEnum(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public static boolean contains(String gender) {
        for (GenderChEnum typeEnum : GenderChEnum.values()) {
            if (typeEnum.getGender().equals(gender)) {
                return true;
            }
        }
        return false;
    }
}
